package com.sen.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sen.model.entity.BmsPost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sen.model.entity.BmsPostTag;
import com.sen.model.vo.PostVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 话题表 Mapper 接口
 * </p>
 *
 * @author ergou
 * @since 2021-04-12
 */
@Mapper
@Repository
public interface BmsPostMapper extends BaseMapper<BmsPost> {

    Page<PostVO> selectListAndPage(Page<PostVO> page, String tab);

    Page<PostVO> searchByKey(Page<PostVO> page, String keyword);
}
